package com.linx.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.linx.common.core.constant.UserConstants;
import com.linx.system.domain.SysUserPark;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;



/**
 * 用户园区关联视图对象 sys_user_park
 *
 * @author linx
 * @date 2024-11-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysUserPark.class)
public class SysUserParkVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long userParkId;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 园区id
     */
    @ExcelProperty(value = "园区id")
    private Long parkInfoId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


    /**
     * 备注
     */
    private String parkName;

    public boolean isSuperAdmin() {
        return UserConstants.SUPER_ADMIN_ID.equals(this.userId);
    }


}
